<template>
    <n-icon :size="size ?? 24" :color="color ?? '#000'">
        <div v-html="iconSrc[name]"></div>
    </n-icon>
</template>

<script lang="ts" setup>
import { iconSrc } from "@/assets/icon.ts";

defineProps<{
    name: string;
    color?: string;
    size?: number;
}>();
</script>

<style scoped></style>
